package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.time.LocalDate;

public interface ReportService {

    /**
     * 用户统计
     * @param beginDate
     * @param endDate
     * @return
     */
    UserReportVO userStatistics(LocalDate beginDate, LocalDate endDate);
    /**
     * 管理端订单统计
     * @return
     */
    OrderReportVO orderStatistics(LocalDate beginDate, LocalDate endDate);

    /**
     * 营业额统计
     * @param beginDate
     * @param endDate
     * @return
     */
    TurnoverReportVO turnoverStatistics(LocalDate beginDate, LocalDate endDate);

    /**
     * 前十销售排行榜
     * @param beginDate
     * @param endDate
     * @return
     */
    SalesTop10ReportVO top10(LocalDate beginDate, LocalDate endDate);

    /**
     * 导出运营数据报表
     * @param response
     */
    void exportBusinessData(HttpServletResponse response);
}
